//
//  AppDelegate.swift
//  sinaWB
//
//  Created by Macdav on 16/4/6.
//  Copyright © 2016年 Dav. All rights reserved.
//
import UIKit

@UIApplicationMain
class Application: UIResponder,UIApplicationDelegate {
    var window: UIWindow?
    
    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject : AnyObject]?) -> Bool {
        
        window = UIWindow(frame: UIScreen.mainScreen().bounds)
        window?.rootViewController = MainViewController()
        window?.backgroundColor = UIColor.whiteColor()
        window?.makeKeyAndVisible()
        
        setupAppearance()
        
        return true
    }
    /**
    *  设置全局外观
    */
    private func setupAppearance() {
        UINavigationBar.appearance().tintColor = WBAppearanceColor
        UITabBar.appearance().tintColor = WBAppearanceColor
    }
}